salary=float(input("请输入党员每月所固有工资收入： "))

tax=0
if salary>10000:
    tax=0.02*salary
    print("固有工资={0}，缴纳党费={1}".format(salary,tax))
elif salary>=5000:
    tax=0.015*salary
    print("固有工资={0}，缴纳党费={1}".format(salary,tax))
elif salary>=3000:
    tax=0.01*salary
    print("固有工资={0}，缴纳党费={1}".format(salary,tax))
elif (salary<=3000 and salary>=0):
    tax=0.005*salary
    print("固有工资={0}，缴纳党费={1}".format(salary,tax))
